package com.lly.markdown

var needAutoLoadLibrary = true

object MarkdownServer {
    var exceptionSavePath: String = ""

    init {
        if (needAutoLoadLibrary) {
            System.loadLibrary("decorate_java")
        }
//        setPanic(exceptionSavePath)
    }

    external fun parse(input: String, listener: MarkdownListener?): List<MarkdownItem>
    external fun setPanic(path: String)

}